package com.weilx959.spt.plugin.e2sp.model.statement;

import com.weilx959.spt.plugin.e2sp.constant.SQLType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import net.sf.jsqlparser.statement.insert.Insert;
import net.sf.jsqlparser.statement.select.Values;

/**
 * 插入语句
 *
 * @author weilx
 * @since 2024-05-02
 */
@Data
@SuperBuilder
@NoArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class InsertStatement extends ParentStatement {
    private Insert insert;

    private Values value;

    public InsertStatement(ParentStatement parentStatement) {
        super(parentStatement);
    }

    @Override
    public SQLType getType() {
        return SQLType.INSERT;
    }
}
